comparing fractions with the same numerator